import java.concurrent.*;
public class Main{
	private static  int count=0;
	public void c(){
		count++;
	}
	public static void main(String[] args){
		ExecutorService service=ExecutorService.newFixedThreadPool(4);
		Main[] mains=new Main[3000];
		for(int i=0;i<mains.length;i++){
			mains[i]=new Main();
			service.submit(mains[i]::c);
		}
		System.out.println(count);
	}
}
